/**
 * Copyright © 2016, Forp Co., LTD
 *
 * All Rights Reserved.
 */
package org.jeecg.common.datasource.jdbc.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.List;

/**
 * 分页类
 *
 */
@Setter
@Getter
@ApiModel(value = "Page", description = "分页信息")
public class PageInfo<T> implements Serializable
{
	/**
	 * 记录总数
	 */
	@ApiModelProperty(value = "记录总数")
	private long total = 0;

	/**
	 * 记录总数
	 */
	@ApiModelProperty(value = "记录总数")
	private long pages = 0;

	/**
	 * 当前页大小
	 */
	@ApiModelProperty(value = "当前页大小")
	private long size = 0;

	/**
	 * 当前页码
	 */
	@ApiModelProperty(value = "当前页码")
	private long current;

	/**
	 * 当前页数据
	 */
	@ApiModelProperty(value = "记录列表")
	private List<T> records;




	/**
	 * 额外附加信息
	 */
	@ApiModelProperty(value = "额外附加信息")
	private Object extra = null;

}